-- GENERATED SPELL FOR [Overseer Athanel] --


function spell0_20435(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20435', 2317, 1)
end

function spell1_20435(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20435', 551, 1)
end

function spell2_20435(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20435', 6270, 1)
end

function Sorts_20435(pUnit, Event)
local choix_sorts_20435 = math.random(0, 2)
if choix_sorts_20435 == 0 then
pUnit:RegisterEvent('spell0_20435', 1, 1)
end
if choix_sorts_20435 == 1 then
pUnit:RegisterEvent('spell1_20435', 1, 1)
end
if choix_sorts_20435 == 2 then
pUnit:RegisterEvent('spell2_20435', 1, 1)
end
end

function mob20435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20435', math.random(1500, 3000), 1)
end

function mob20435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20435, 1, 'mob20435_Action')
RegisterUnitEvent(20435, 2, 'mob20435_Leave')
RegisterUnitEvent(20435, 3, 'mob20435_Kill')
RegisterUnitEvent(20435, 4, 'mob20435_Die')
